fix platform specific dependency