fixed compile errors on loader lib.