I tried the solution in this blog to fix up the buildorder with msbuild.
<ProjectReference Include="... lib.vcxproj">
This seeems to work with msbuild but now I get an error in VS2012 when opening the project.
Unrecognized Guid format
I'm using Wix 3.7.1224