added std namespace qualifier on strncpy functions