fixed element.h compile errors