Add MariaDB 10.0 support to bsd.databases.mk

Added library version for 10.0
Updated version extraction (double-digit major version)
Added ports to install