Scala 2.10.4
modern Linux system uses Long for time_t
exit is inconvenient
move test code out of implementation
add demos
works against 4.1.0
test against jna testlib