Wireless not working on Ubuntu 12.04

I was getting a parse error on my Wireless monitor, and installing libiw-dev didn't fix it either. The solution was to install with -fall_extensions -fwith_iwlib, so it seems as if with_iwlib isn't included in -fall_extensions