DEBUG causes segfault of stat on GNU/Linux systems