core/linux: moar fixes