Improved the code for debug related functions.

 * update_debug_info no longer modifies original .stabstr strings,
 * implemented strlcpy in string.c and used in update_debug_info,
 * couple of code clean-ups and improved comments.