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."