multiwii fixes to build in Visual Studio 2013 C++