stats: make more stats work in Linux

http://codereview.appspot.com/96084
3 files changed