general cleanup and using boost to detect correct filename for OS