- some fixes for building the JUCE lib
- removed unnecessary cast