Fixes for mariadb build

Added function for source tarball replacing, source urls and modify build.inc