Fix source flag properties for boost signals. Add thread compiler flags.