Fix issue 4814 -rdmd: Doesn't rebuild when using -of and turning an -L linker option on or off 

This was a design issue, which this diff fixes by adding a new file to track the last build time.