Make math library an extension module to make windows happy