Fix linux build.

After getting some good tips from halfnelson on IRC, this is what I had to do to build linux host on a cleanly installed unbutu 12.04