installing build-essential and php5-dev before installing extensions