removed warnings for macos and fixed broken build