Fix compile errors for Linux