Reducing the number of dynamically linked libraries on Linux