Bsnes spews quite a lot of warnings with -Wall (not that surprising, given the looks of the code), but at least non-bsnes parts shouldn't give warnings. Oh, this also fixed couple of bugs in Lua support.
The first release for public testing.