fixed up handling of library names in cmake #869
cleaned up debian package #869