Issue 147

fix some native warnings reported in #147