move enabling cfg80211 to compile option
workaround: fix NULL pointer dereference on kernel 3.14