Working on dependency linking and header support. Lots of fixes.