Disable setting MASTER_AUTO_POSITION=0 which is not compatible with
MariaDB 10.
Set MASTER_AUTO_POSITION to 1 only if gtid_mode=1 as it is required :

Extract from official documentation: http://dev.mysql.com/doc/refman/5.6/en/change-master-to.html
"gtid_mode must also be enabled before issuing CHANGE MASTER TO ... MASTER_AUTO_POSITION = 1. Otherwise, the statement fails with an error."
revert last commit, use a variable is_mariadb to check gtid mode
Fix typo in error message.
Merge pull request #37 from mediatemple/master

Fix typo in error message.
Merge pull request #36 from gregorg/master

Disable setting MASTER_AUTO_POSITION=0 which is not compatible with