Add rt library if necessary