Split Array type and macros from utils.[ch] into extra files
Ensure to compile the packages using gcc

CC variable in the Makefile was changed to pick up its value from the
environment which it set to clang on Mac OS X. But that clang version
warns about -pthread being unused during compilation.