Frameworks : Fix face detection

I337a7a2e8b124aac76f52abcc0edd8af9b0b0e29 introduced
the ifdef's at the wrong location. This patchset addresses it.

PS2: Rebased to include previous CM dependancy.

Change-Id: I6b19fb96076bdc62b2ca57d1ccaf97f0cb901d67
Active Display: screenOrientaion = PORTRAIT

Change-Id: I652c8193715078ff7fdb1d4154c6103fbebd0362

Change-Id: I652c8193715078ff7fdb1d4154c6103fbebd0362

Change-Id: I652c8193715078ff7fdb1d4154c6103fbebd0362