Link against appropriate frameworks on Mac.