Fix C lib and Nit lib issues on Android

In response to #334.