more fixes for ext/mysql