Swift beta 5 compatibility