Core: fix build