and include <unistd.h> for unlink(), since it uses -Werror. Diff shown to zhuk@ who was going to look into it..