Fixed linking with realtime library.

Hi,

The build system did not detect if linking with librt was necessary in non-bundled mode.
And in bundled mode it added it eventhough unnecessary.

Regards,
xan.