Remove Linux-only crash bug and dead code