CMake support

To solve the issues with cross-platform compiling and installation I propose to add CMake project files.

The makefiles may remain the main build system but for non-standard distributions or Windows CMake may simplify compiling library and examples a lot.

I have also added some #ifdef to osmpbf-outline.cpp to allow it compile and work on Windows.