Merge pull request #1 from EmilWestergren/master

Prevented exception when compiling Android.mk file
Merge pull request #2 from EmilWestergren/master

Changed the creation of Android.mk file
Added some flags when generating Android.mk file