egl: platform: common: implement conversion to base buffer class

Signed-off-by: Simon Busch <morphis@gravedo.de>