fix non EXTENDED_WMODE build