Fixes #544

Including `<iostream>` in `gen/logger.h` allows LDC to compile correctly on some Macs running OS X Mavericks.