Core: fix build for haiku