Selective build of shared/static library (issue #27).