update POM to support releasing, and java 8 compatibility