Fix compiling error in Mountain Lion