Reduce required cmake version to 2.6.3.
Add export macros to all classes and functions.