Fixed compiling-error on OS-X.