Fixed compile errors in VS2013 (update 3)