Added gcc dep to php. Removed ncurses dep from mariadb