Declare cmake project first - fixes win32 compilation