The procedure can't compile because the sequence doesn't exist at compile time. Oracle can not tell that you're going to create it using dynamic sql.
For this to work all code that references the sequence would have to be dynamic sql as well.
My advise - don't create the sequence dynamically, just create it normally or you'll keep running into problems like this.