Compile re with MSVC 2013

Patch to enable compilation with MSVC 2013 w/out warnings