[loader] fix 64bit build

@deztructor, great teamwork on this one