Added function pointer to sample_loading.c, modified Makefile to build m...

...ain chdkptp.c
I guess exposing these functions serves the purpose of the shared libs. I'll negotiate with the main source when I do the final PR.