Sound Engine, Mac compile prep

applied some changes for mac compile and an error in the sound engine