include optional flags, NUMBITS suffix for lib install

Conflicts:
  CMakeLists.txt