Misc: Fix warnings and build

Closes #10396