Fixed 64-bit c function mocking, few weird minor fixes for Win64.