home, add compile condition to make it possible to compiled in windows.