Requiring cmake 2.6 and newer from now on.
Properly ran constructor of templated superclass (was missing template argument)
CMAKE: Altered some if-tests to use variable names without $\{\} as cmake 2.6 seems to like that better
Qt::MiddleButton replaced with Qt::MidButton as the former isn't supported on Qt-4.6
Refactored local enums to top of file in anonyomous namespace. Local types cannot be used as template arguments, but they were used in a std::vector
Removed a leftover $\{\} in an if-statement within cmakelist
Merge pull request #66 from sintefmath/kjetilly_rhel_fixing

Fixes needed for RHEL compatibility