Move to Maven builds
Support Windows newlines