cmake script and cross platform module fixes

* Cross platform support for SHL_EXTENSION
* moved license texts around to prevent case-insensitivity issues in building
* other minor cmake/cpack script fixes