Minor Debian and RPM packaging fixes

Many small fixes. Public QA that assures that everything still builds nicely at:
https://launchpad.net/~mysql-ubuntu/+archive/ubuntu/mariadb-10.0
and
https://build.opensuse.org/package/show/home:ottokek/galera