Fix building protocol and socket modules