Exclude object files.
Move server socket code to common.