Fix library ordering

This fixes building on Win32. Note that Win32 users of LLVM still segfault mysteriously.