test/build.sh: removed unused lib sedding.

NB: Ye olde hack from pre-duct-11 days.
test/premake: cleanup; made warnings errors, added some warnings.

NB: Added these flags:

    -pedantic-errors
    -Werror
    -Winit-self
    -Wunused
    -Wold-style-cast
    -Wnon-virtual-dtor
    -Woverloaded-virtual