fixed bug with undeclared variable min in Long#div.

The commit message explains the bug.

I wasn't entirely sure of the actual value to return, so please let me know if Long.MIN_VALUE is wrong.