Loader code for each platform