fix building of multiple apps, serial