Fixed error when compiling in MAC