Fix a stack-buffer-overrun found by address-sanitizer.
Add configure check for C++ 11.
Auto generate dependency, so incremental rebuild would work.

Also rename existing *.d file, to avoid conflict.
Fix LPC socket issue on getsockname().
Fix compile warnings.
Rename *.c to *.cc, rename EFUN sepc file to *.spec.
Remove auto dependecy generation again.

They don't work!
Move socket failure message to correct debug level.
Register write event in add_message(), eliminate busy loop in backend().
Register LPC event when appropriate, eliminate another busy loop in backend().
delete obsolote function declarations.
Source formatting.
Merge pull request #120 from sunyc/master

some additional CL to include in alpha6