Fix server and module packaging/compilation errors