Fixing compilation errors caused by Payload no longer being an InputSupplier

See JCLOUDS-622 and https://github.com/jclouds/jclouds/commit/80a0256c
See above comment about the need to close the stream.