fix: gcc warnings on macosx