C89 compat
Merge pull request #108 from pornel/c89

C89 compat