Add support for generating init file with dynamic compilation.