fixed OS X build: USE_X11_RANDR wasn't defined
define USE_X11_RANDR to false on freebsd
Make released key polling wait for exact time until key gets released
Keep track of time since initial button press and last button update
Support repeating button presses with configurable repeat rate
Skip double press removal. It is handled through other means.
Pass through duration on all button repeats