Reconstruct code for better OS-independent.