Print an error if -r and -vsync 0 are used together.

Fixes ticket #4041.