Updated libraries and fixed compile errors.