key compile fixes