Implemented reading regions of interest
Typedefs are replaced by fixedwidth datatypes

* short, long, etc. replaced by uint16_t, int16_t, etc...
* cstdint (C++11) include added
* cmake files updated to call gcc with -std=C++11 (needs gcc 4.7+)