Develop winrebased

Pathces for issue https://github.com/DennisOSRM/Project-OSRM/issues/646

Hope something of this compatibity code could be useful