support for all platform.
Merge pull request #41 from chengstory/#4529

support for all platform.