Fix static ebb id initialization

This commit puts static ebb id construction into the header where the
ebbs are declared. This guarantees that the constructor which figures
out the id is guaranteed to execute before any code that wants to use
it because of the ordering within a translation unit