Fix build for java 11
When java 11 is detected the preview features are enabled generating
problems with other libraries built on this.
Since these features are not needed for the library to work the option
is removed from the pom file before to compile the package.