Don't use getline(), it is not supported under BSD/OSX