[build] Fix compilation errors on Linux