Revert "Don't rely on gcc extensions"

This reverts commit 9e8174d0f0af50ab36a4fe8b9b61d027f0bef117.