Okay, I just tried it with my Xubuntu 12.04 64bit. Version 3.0.1 worked fine. This is what I receive for all examples on the terminal (even after newly compiled):
The program 'Shapes' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadMatch (invalid parameter attributes)'.
(Details: serial 418 error_code 8 request_code 135 minor_code 5)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)
None of the examples works now for me. I thought you might need to know this.