Added support for non-GNU AWK

Without this fix cross compiling from mac osX doesn't work