Check uint16_t and uint8_t support correctly

Fixes #177.
Document JANSSON_BUILD_SHARED_LIBS CMake option

Fixes #187.