Fixed compilation for Mac OS X 10.6 target.
Set alphabetical order.
Add support signature version 4 for Amazon S3.