Update smallpt.go

modify a little to make it compatible with Go 1.1