[linux build] fix some linux build issues