Resolve a race condition that could cause us to hang during abnormal terminations due to multi-counting num_terminated
Per patch submitted by J. Randall, add missing library to LSF integration

cmr=v1.8.3:reviewer=rhc