thanks to Jack for this hint
small fix of Vincent's patch
added pointer grab
applied Salmi's patch
applied BSD support patch
initial commit