make the layout lazy on StructByReference to allow to use self.ptr inside the layout. possible fix for #1729
run junit test on build the openssl jar [skip ci]