Fix building with GCC 4.6 on Ubuntu

const-ness fix for the call to PyImport_ImportModuleEx and
rename major/minor to avoid clashes on some systems due to
sysmacros.h #define'ing minor and major.