Fixed Mac compile error