Modify for ppc capability support
Merge pull request #399 from kylazhang/capability-fix

Modify for ppc capability support