Improve rules for building examples.
Build and run the examples during the Travis build.
Remove unconditional -no-as-needed flag from ncurses build parameters.
Merge pull request #210 from yallop/travis-examples

Build and run the examples during the Travis build