build system now supports also clang
fixed a bug in X11Application::handlePendingEvents. (no return value was given)