Added make check target and missing headers.