3.1 runtime does not compile, it seems to be using cocos2d::Matrix and cocos2d::Vector2, which are not defined. I fixed this by defining
typedef Mat4 Matrix;
typedef Vec2 Vector2;
in cocos2d.h
Also, the resources weren't found in the example project, without adding them to the search path manually. After these changes everything seemed to work.