Workarounds for g++.