gargoyle_header_footer: Add more robust creation of MAC addresses.

This fixes what I commented before.

Please, apply.

Thanks,
Rogério Brito.