basic fixes for ext/mysql