Fixes for .swc build.