Fixing static link targets