Set debug flag for OSX debug mode