Improved CMake files

* Add support for static library
* Add INSTALL_LIB_DIR variable to control lib destination
Merge pull request #28 from dgivone/cmake-fix

Improved CMake files