MariaDB: include header files depended by package

Signed-off-by: swpd <swpdtz@gmail.com>
MariaDB: encapsulate principal structures implementations from end users

Signed-off-by: swpd <swpdtz@gmail.com>