Core: fixed gcc build