Fix compile on non window applications