Updated Cabal version to >= 1.18 and changed 'mysqlConfigProgram' to work with it.
Revert permissions back to 644.
Bump version number.