Update project build configs and fix code style issues.

Update project build configs and fix code style issues.