refactoring codes...
Fix build problem on android

(Fixed #15)