support build as shared library (define QSS_STATIC to build static
library).