Make C extension compile multiplatform