Fix compilation

without those modification you can't build inside android
Merge pull request #33 from andi34/jb2

Fix compilation