Build on Apple

Consider these changes for building on Macs.