Fixed WINE compatibility