fix protain (isspace) issue on linux
fix build issues on linux