Fixed aria2 compile error on OS X 10.9

Merged a patch from aria2 upstream:
https://github.com/tatsuhiro-t/aria2/issues/109