Allow disabling of buffer object extensions

This is useful for testing purposes since these extensions are currently optional
Fix NULL dereference crash