Add types compatibility for windows and linux.