fixed warnings on MacOS builder