GCC compilation for os x.

Splitting ubuntu-halt into separate reusable gcc task. The linux tasks
worked just fine with clang on os x.