csim.c now able to be compiled. A few libraries were missing and it's now able to compile with a make call.