VM: build compatibility for OS X with GCC
VM: disable precompiled headers with on Mac (for clang)
VM: fix clang warnings
VM: rename platform.cpp to platform-osx.cpp
VM: add platform-linux.cpp
VM: fix Makefile
Merge branch 'compat'

Makefile and platform changes to support OS X.