Fix compile warnings as seen on g++ 4.4.7
Fix module loading in PURE_STATIC builds