Errors should print to stderr
If we fail loading the program source return NULL
Avoid some duplicated code in sclMallocWrite
Remove more duplicated code from sclMallocWrite
Corrected a typo