fix mavericks linking