bugfix: compile as static library