Create generic shader program loader function