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.