change doc and fix mac build file.