Libextopts global includes are separated from implementation code.
Added libextopts example.

AlsoAdded missing library global headers.