Small fixes with for MariaDB

Some small fixes I made for my collectd_mysql plugin ported to mysql-stats-to-graphite.
* a fix for the issue #1 I opened
* 'Total memory allocated' in fact matches two lines under MariaDB, a fix for that.