Fixed VS14 compiler and linker warnings.