Make subprocess errors a little smarter.
First attempt at making this thing compile-able/working with x86_64