Added flex dependency. Still needs some work if compiled without --disable-nls.