Fix GCC compiler warnings for Ruby build

This commit fixes the warnings coming out of ast.c using
the fixes here:
http://stackoverflow.com/questions/3599160/unused-parameter-warnings-in-c-code

However I can't see how to fix the warnings coming from
lexer.c since it seems that code is auto-generated by
flex.

Any advance on this?