Adjust the compiling order.

- Make the plugins compile first.