Fix build scripts and add license

Signed-off-by: Sarath Lakshman <slakshman@zynga.com>