Do not link with cocoa framework on apple.
Minor style fixes.