Generate r_common from a list of GL functions the engine depends on.