gold posts slight gains, amid greek debt concerns and sell-off in china