fix for g++ versions which switch into c mode for .c extensions.