fixes and updates for MSVC 2012
minor changes in multiplatform build macros