Fix linux and rearrange dependency graph
Invert la order