Adding Mac joystick support -- build problem