isolate librt dependency, minor script correcttion.