Make FPC_* defines an enum type in path.h.
Add os_stat to os/fs module.
Refactor fullpathcmp.