non arduino IDE development for leonardo (32U4)

Solved!

Seems i needed to include the instructions in main() between init() and setup():
#if defined(USBCON)
USBDevice.attach();
#endif