Mac fix: Only use NSLog when GUI launched