add source files and libraries