Improve logging of configuration
Use static libs on unix too