Add a pom.xml and fix the build