Build structure corrected

* Will now create dep-files for include-file dependencies

* Corrected error in submodules where install would install to often
Basic framework in place
Makefile clean-up

Yet some cleanup
Flags corrected & error in assert_ret

Logic error in assert_ret corrected. Needs to be cherry-picked into sampler