Added std namespace before C like calls for Solaris STL-port compatability.