mpipe: fix build as shared library