Remove warnings on mac