Add some implicit support for std and textio libraries

Patch submitted by Fabrizio Ferrandi.