Fix generated cmake to not include EGL if using desktop GL on Linux

Change-Id: I5ece729110227c9c64e8b4035037d18c4308a65f