fix dhd sensor
fix build with newer Linaro toolchains(>= 4.6.4)
fix newer build with linaro