fixes to compile on windows vs2012

this moves ofXML from /types to /utils in the VS2012 project and fixes some of the new logging code for TARGET_WIN32.