camerahal: allow building against other display hals

Change-Id: Idf29e3e84761b12f4753d29efbe1d3f7709bc82f
camerahal: Avoid memory leaks when resetting preview window

Change-Id: I0ac2a4cb36a1104fd9c0872bf82d7bca9ffcb208