fixed error when compiling NAMD UG