fix compiling with pub build