merge saitoha's patch (https://gist.github.com/saitoha/1f26ab27d552582cdbdf)
	recterm: build fix for OSX