rm packages which fails compiling before compile