Added ifdefs for Apple because SFML library functions from the one I installed
have slightly different names (the first letter is always lowercase)