API fixes

Added a newlib test app.