Reverse link order.

Failed to link on Ubuntu 12.04 with GCC 4.7.3, don't know why.