disabling warnings and apply workaround for macx