add pexit function, fixed bug in strcpy for centos6.5x86