compile extensions on mac