Changed erfc to derfc and declared it to be external to fix issure with ifc7. Hopefully this will not cause a problem with other compilers where derfc is an intrinsic function.