Modified map.c to fix some MSVC10 compilation errors.
Merge pull request #3 from Susurrus/master

MSVC10 needed some slight adjustments to map.c to compile