some db module linking fixes on Solaris (order of libraries and static mod_dbxXX)