Compile fixes and compile option updates for VS2013.