fix build of shared libraries

even if CPP-NETLIB_BUILD_SHARED_LIBS was set to ON or TRUE, the shared
libraries were not build unless BUILD_SHARED_LIBS also was enabled.

now either of the two needs to be set to enable shared libraries.
Merge pull request #228 from torbjoernk/fix-shared-libs

fix build of shared libraries