Fixed NetBeans aspects of the build and added a Maven build