Increase robustness of make install target

The current branch would not install on OS X due to various reasons. "make install" on this branch has been verified on Mac OS X 10.6 and Ubuntu 12.10.

Note that I have made the documentation step optional.