Fix undefined symbol error on module load if compiled with Clang 3.4

Fixes issue #803 reported by @SaberUK