Fix standalone compilation