fix for listbook style flags under windows and osx