Options in cmake to selectively disable shared or static libraries