Cleaned up linked libraries for rms_test