core: fixed compilation errors on lucid/precise