OSX Template fixes

This fixes some of the template problems (mainly on OSX) I've noticed. Project from OS X template now builds with only three warnings regarding deprecation of "Gestalt()", otherwise builds fine.