Changed iterator

Conflicts:
	You-GUI/task_panel_manager.cpp
Set to element before end
Changed to another method.
Removed unnecessary include.
Changed dependency insertion again
Fixed some include stuff
Syntactical change
Fixed compile issue
Tiny fix for #220
Merge pull request #221 from angathorion/dependency-insertion-fix

Dependency insertion fix (container agnostic)