Needed changes to have NULLGL compiling.

-DNULLGL compiling is not working in current master.
This patch fixes this. As I lack deep understanding of the OpenStack stack, this patch need review. For example, unclear why so many methods must be removed.
Also, is the approach of using {assert(false && "not implemented");} as method body good, or should we stick to just {} ...