Converted into two-stage build/package process
Fixing dependencies and licenses to comply with namcap warnings
Added explicit dependency on libmariadb