Fixed VS 2013 build errors and warnings (except one warning from plperl)