ch6: workable in x86_32

Basically, the main modifications follow the changes in the
chapter2. In addition, I added an additional CFLAG
"-fno-stack-protector" to avoid error from "__stack_chk_fail
undefined reference."