fixed many warnings from cygwin build, due to this function NOT being defined in a header, even though it is exported and usable.