[3.4] Add support for PDO based connections for MySQL

siehe: https://github.com/joomla/joomla-cms/commit/216b687439da2cbe7e477ddc808259c95897a505