ENH: Compile libs and app into separate files

This will make debugging app code a lot easier