Some fixs and adds

1) Fix compile errors of xcode
2) Android support (add Android.mk)
3) Fix some bug
4) Add more lua functions