native: Fix prg linking on cygwin

Undefined symbols are not allowed on Windows, so we must provide
a library definition file at link time. Copied from win32.