fix taking address of first element of empty byte slice

Change-Id: I57efec6116b688bf1aaa5da34280f76a0d9ec882
windows mingw support

Change-Id: I4d1c1f7f990dce2d3f4727af6eb3b43fd7d186ee