wpa: Fix GCC 6 build
GCC 6 searches serially to resolve external references.
(cherry picked from commit 681500889424423403ace51f118b3467e09acc00)