Compile main sources, then test sources.