work around weaken limitations on perl < 5.8.3
fix weakening references to ro hashes in old perl