Fix remote Maven compiling