Fixed potential divide by zero on OS X. Should resolve https://code.google.com/p/jnativehook/issues/detail?id=86;