chipmunk fixes for MSVC