fixup of libraries, now can be compiled on debian 7 and fedora 19