Fix build warnings in VS2012