fix library dependencies for roscpp tests when built in isolation