Use #ifdef __APPLE__ to avoid compiling OS X specific things (for device volume control)