Fixed some pedantic warnings.
Fixed a bug in File relative path parsing.