fix for flags on linux with 3.0rc4. small cleanup