fix compilation on Ubuntu 13.04

- missing inline generates warnings on Ubuntu which seems to
make compiler very unhappy

Closes #848