refs #6492 Added necessary cmake changes to MariaDB.  Builds community edition just fine.  :)

git-svn-id: file:///svn/mysql.com/mariadb-5.5.30@55288 c7de825b-a66e-492c-adef-691d508d4ae1