Add program compile/link test + Fix bug in ccl_program_link