fix some stupid compiler warnings
change from building a library to building an executable

We're about to start testing the IR generation, so we'll need this.