better separation of sync/unsafe code paths -> fix NPE
Provide an Unsafe from Java 8 to build against.