Fixing macos lib build