Fix potential compile error observed on MacOS 10.8.