DRY up a bit and allow users to inject stuf into CCFLAGS/NVFLAGS/LDFLAGS.