Try to handle building on Mac OS X, not just Linux.