mapserver-64: large refactoring, relative to homebrew PR; java not working right, yet