use JNA as inspired by logback-journal