Fixed implicit type conversions.
Generate BuildInfo.h on VS2013 (using a short lua script to avoid cmake for now).