changed cmake to build all libraries into one directory