[platform] fix compilation of linux/EGL