Rework BOARD_EGL_NEEDS_LEGACY_FB implementation

The problem with the window format boils down to a circular
dependency that makes service startup hang, so skip a round of
queues-to-window-composer to avoid it but keep using regular
Surface objects as windows, instead of replacing them with
native windows.

Change-Id: I6fed0fe04928df370c298c68ac1eb6d5b5cfb214
surfaceflinger: Fix building with display-caf + QCOM_BSP

We need the right gralloc header in here

Change-Id: Iaef1a1b9e4b5c9a93ace0dfa2a427ee8ae026e7b
Merge remote-tracking branch 'cyan/cm-10.2' into cm-10.2