Fix several stupid mistakes.

Signed-off-by: mk124 <mk124a@gmail.com>
Add VS2012 project files.

Signed-off-by: mk124 <mk124a@gmail.com>