update permission issues
update for Mac wallet compilation