You will need to add "_SECURE_SCL=0" to the preprocessor definition list of your project. The example projects should have this defined.
Here is a list of Visual Studio 2008 project settings you should set for all your plugins:
	Code:
	C/C++:
    Preprocessor:
        Preprocessor Definitions += "_SECURE_SCL=0"
    Code Generation:
        Runtime Library = Multi-threaded DLL
Linker:
    Manifest File:
        Generate Manifest = No