(BlackBerry) Add NDK project, fix inline, and a crash from using -O3

The NDK commit is the same from the last pull request. I'll close that. I found that INLINE=static __inline__ in macro.h so I just need to define __inline__ to inline. After testing this, it crashes when -O3 is on with a SIGBUS. Not sure why that happens, but -Os fixes the problem and it shouldn't be much slower if at all.