Change generated preprocessor file extension to .i
Fix check for INCLUDE_GENERATED_DECLARATIONS