Port to Swift Beta 5
Fix incorrect build order in Makefile