I do not know what the problem was, I converted the project from cmake to a regular visual studio project, it asked for an additional arch/win32/ua_architecture header.h and everything worked... It's unclear why cmake didn't ask him...