this version is compiling well on mac