I found the %{gcc_version} macro. The updated code will be pushed to Virtualization/virtualbox later today.