Removed old remote repositories from pom.xml and fixed a compilation bug that does not occur with every javac version