Fix crossing platform compiling issue