Remove obsolete reference to staticlib

We don't use that directory anymore.
The output variable from find_library() needs to be cleared

Otherwise you'll just get the initial response back every time
you call it.
Split up any entries that contain multiple link arguments

This happens sometimes in order to enforce a strict ordering.
Handle arguments that have the -l prefix
Handle static linking flags in .la files
Handle mingw circular dependencies in base libraries

Our link order should now match the built-in library list.
Merge branch 'build' of https://github.com/CendioOssman/tigervnc