Fixed XSynchronize and XSetAfterFunction definitions