changed gcc -> cc
Removed the need for some mallocs