Added option to statically link.