made popen decs on cygwin extern