This. People seem very exercised about using the dollar specifically to buy oil, but .. currencies are fungible? You can trade them on international markets? Also, where does the gold come from? Is it just their central bank reserve?
No, it seems that Ghana is experiencing the classic forex problem of not being able to export enough valuable production in order to afford its imports, and it's very hard to reduce imports of fuel without drastic drops in either lifestyle or production capacity. And if you can't afford fuel to produce exports, then you have a death spiral.