fix 2.6 module build when compiling on a 2.4 host system