Fixed some warnings in the code exposed by the port to JUCE.