Added some needed std lib #includes. Reworked gcc separate file template instantiation code. [SVN r30791]