Move unconditional test compile and link flags into their configuration functions.