in reply to static linking demanded

Have you considered PAR? I've met with some success in my (admittedly limited) attempts to port things between different platforms. Then again, according to the docs, it loads XS modules by overriding DynaLoader, not by bypassing it. Not sure if that will be an issue for you.