compiling photon-apps under cygwin

in order to use custom widgets in windows PhAB
http://www.qnx.com/developer/docs/momentics621_docs/photon/prog_guide/winhost.html#CustomWidgets
you have to compile the widget in cygwin environment

if i try to do so i get errors of redefined types and so on - are the
includes of cygwin and qnx compatible or has sombody already experienced
troubles?

thanks!