Fix building with clang

A return without a value is not allowed in a function returning int.
Merge pull request #4 from mstorsjo/fix-clang-build

Fix building with clang