Implement linker -preload and -nopreload options
Minor fixes to support multiple VMs