fix issues cross-compiling a more complex swc