Update to 1.7.1 and make mariadb an optional dependency