Fix build errors for Linux