Fixed sources being compiled out of order