I finally got it working!
these are the steps I took, after deleting the screem directory and all other related files that did not get uninstalled (one of those was the file screem in .gnome) I untarred screem-0.2.10, cd to it and I used the following:
./configure --prefix=/usr/X11R6 . I tried using
./configure --with-gnome=/usr/X11R6 previously and still got the same type of errors as in the last message.