Fix build without -std=c99 (for LuaRocks)

See discussion here:
https://github.com/keplerproject/luarocks/issues/129