Visual Studio 2013 build

https://commitfest.postgresql.org/action/patch_view?id=1320
http://archives.postgresql.org/message-id/529D05CC.7070806@gmx.de