fixes to mac SDK