Yhep!
All seems to work just fine when loading the code with the atmega on UNO.
Does Arduino IDE needs specific preferences for this procedure?
BTW...
I saw a few days ago, an hardware "library" called "Atmega328 breadboard" but when I try to configure pin 13 (ledpin) as an output it gives me a library error...