Add conditional linking to rt-library for Unix systems.