Fixed reference dates for yield-based npv calculation.

Thanks to Nick Glass for the heads-up.
Using correct #define to check for x64 compilation.

This also removes the need to add a custom preprocessor definition
to the projects.
Also, the check was extended to VC++10 and 11.

Thanks to Dale Smith for the heads-up and the analysis.