Updated build files and fixed compilation issues.