Cutting out all static and globals fromt he library