build.sh: removed pointless lib sedding.
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