Updates for Ubuntu compatibility.

Up to this point I've been exclusively developing on Mac, which is more
forgiving in some cases, particularly when compiling C++ code.