remove external libraries from head