Add covariate support
add system header for getpid