fixing issue where gcc wasn't finding LDBL_MAX