added 'setupGcForForeignThread' for better C interop