enable building shared library for #128