Fixed configure to work as expected on OS X
Added pom.xml