backported from shflags HEAD

git-svn-id: http://shunit2.googlecode.com/svn/trunk@341 0b216afc-fc4a-0410-87c2-ade1b7cef105