Updated to use gcc (more portable)