fixes for conditional compilation for class attributes