Use real path of all files internally, requires _XOPEN_SOURCE>=500, fixes issue #137