declaration fixes for clang compatibility

Apparently other compilers only gave a warning for "void main()" declarations, and that's no longer okay. Also, removed a couple unused variables.