- use common header
- add make file for static builds in NDK
- fix all compiler warnings