fixed real path checking
added missing library