Fixed install location, added -std=c99 flag to Makefile for gcc, and fixed compiler errors in rand.c/h