Add -linkall when building library