Fixed compile error on Mac