Deal with long/int issues when compiling on a 64-bit system. (#4521)
Merge branch 'master' of https://github.com/mapserver/mapserver