Can this be done in a more vanilla style, without ` __attribute__((constructor))`?