Fixing issues for mapserver 6.4