fix static linking #2