Set the build to support JRE7 and replaced mysql-connector with mariadb connector in the library