Update mariadb10 formula with changes to mysql

Please refer to mxcl/homebrew#20734

Also includes the following

40d59d7009f2f2da1bf277d54831c31be2f4d396
7941829a9c151bb3260186f674cc8a46881953ec