Cmake build system for epr-api

This patch add support for the cmake build system to epr-api.
The current implementation can build and install both the static and the dynamic version of the library and works out of the box both on GNU/linux and OSX (not tested on windows).