Very minor bugfix. Also adjusted standard to gnu89 to fix compilation issues (lot of missing prototypes). Signed-off-by: Rosen Penev <rosenp@gmail.com>