Added pthreads to default OS X makefile (now a dependency), and fixed missing return value