Enable threads and ec2_gahp on Mac OS X.