Added option to link all dependency libraries statically.