strip gui and xterm el files