add private_lib for NL80211 and wext driver.

Copied from hardware/broadcom/wlan/bcmdhd/wpa_supplicant_8_lib and modified
to work with generic wext driver.

Change-Id: Id33647ac6c8ae7faa9ed0b7cd24c59e0c76fdd85
Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
hostapd: Fix aliasing violation

Change-Id: I1661f1e50959165542aed00374467715dc26d847
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>