Updated linking system to use dynamic instead of static linking to play better with applications that use linktools. Also, provided separate include definitions in Makefile.extern for the layout layer.

Fix in sight_structure_internal.h to avoid compilation warnings.