compiling photon-apps under cygwin

in order to use custom widgets in windows PhAB
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