Install php5-dev and use php5-mysqlnd instead.