fix include path and use strncpy