check and fix the linux build environment