make ClassPool independent for each variant; fix #5