Link everything static instead of just the runtime libraries.

There's really no sense in just linking the runtime libraries static. With the current options one has to always manually change the script to link the examples static against pthread with MinGW etc.
Linking everything static will solve this issue and makes more sense.