add missing files, fix library paths