Updated my previous version of the portage to make use of the CFLAGS variable. Grab it from: http://www.cdf.toronto.edu/~agenkin/wmnetselect.tar.gz