Improve #pragma once.

Use realpath() to canonicalize pathnames before comparing.
realpath() resolves all symbolic links and removes ../ from the path.