add linking for static libs