Follow up f98484699e820d8a6cd2eb656244a9178b1ecc61

Signed-off-by: shennetsind <ind@henn.et>
Follow up e5b1d3bdff66c9475755651a94d20057fc4d02dd

Signed-off-by: shennetsind <ind@henn.et>
Fixed Bug #7321

Special Thanks to Xgear, he and I spent about 3h to figure this little thing.
http://hercules.ws/board/tracker/issue-7321-map-server-connectivity-on-windows/

Signed-off-by: shennetsind <ind@henn.et>