Fix broken builds for mapscript csharp/java