Assume BSFQ
Remove ifdefs
Use cout instead of cerr where relevant