Change build options to work with Linux and Darwin