Fixed compile error when targeting Mac OS 10.8 or earlier