fixed mac compilation issue