add cmath for icc
minor modification in hgp_main