Link statically the libraries built from source.