better linking of lib files