test/premake: removed g++ hack for -Wold-style-cast, added -Wundef.
IO/dynamic_streambuf::commit_direct(): change seq size even if in output mode.
IO/dynamic_streambuf: added get_position() and discard().