Add an install target and rearrange the layout a little to make the build rules simpler