direct.h is part of the Digital Mars compiler, not gcc.
Most of its functions have similar names in linux, which are positioned standardly. Read the man page, for example. getcwd , rmdir , mkdir , or clarify your question about what features you need.
In the beginning, just remove include and see what other errors you get and work from there.