Added linking of libraries