Constructions of almost secure frameproof codes with applications to fingerprinting schemes