Port Ubuntu patches to flo-llvm (wrapper)

These changes are also necessary in order to make the compiler wrapper
do anything on Ubuntu.