static: Use correct libraries for static binaries.