adding simple nonlinear example
fixed library build errors