Change build to be platform independent

Apply fix from http://stackoverflow.com/questions/10335815/how-to-make-maven-build-platform-independent