Yeah, the install(_script).sh are to allow deployment on the Mac (which wants absolute paths to libraries). They will need to be changed to direct to the local libraries in case you need them... (hopefully a new version of MacDeployQt will appear at some point to take care of all that)
you might need to add
#include <opencv2/legacy/legacy.hpp>
#include <opencv2/legacy/compat.hpp>
to get those
I haven't gotten around to porting it to opencv2.2 so the patch is very welcome!