Fix build for VC++ 2014 CTP & fix some warning