check the linux build and fix errors