Fix build errors on Linux system