added isinf def for windows. nonideal, may break on windows. not thorougly tested.