Update VS2012 project for latest changes and make isnan() work for VS