Native OSX implementation
Actually linking against the specified libraries
Adding cocoa app delegate and an event for window closing