om: fix broken build on clang and gcc