This requires a small change to to use strncpy() instead of strcpy(), as well as change of include paths to not use "..". The other warnings are just not being hit anymore.