macosx: fixed compilation warning