compilation bugfixes