Add 'residualvm specific' markers to configure & build

Will be squashed into d85d9fd
Abstract OpenGLS state data into void*.

Will be squashed into 4c482c7.