lets properly respect configure's --prefix option

Right now configure accepts a prefix option, but doesn't do anything with it. Lets set it so that the prefix actually causes make install to install everything in a prefix.