small compile fixes