Fix 'smc #0' compilation errors