Core: Fix build for shit OS
Closes #12597