CMake: Detect attempts to BULD_SHARED_LIBS on non-Linux and fail.
Merge pull request #711 from klickverbot/shared-error

CMake: Detect attempts to BULD_SHARED_LIBS on non-Linux and fail.