fix a compiler error (under xcode) and a compiler warning

Hi,

I got a compiler error (due to use of m_level as a private member in a sub call) and fixed a compiler warning (under OSX).

Please check and merge.

Matthias