Opening event
Making SDL compiling on OSX