Add a forward declaration (C++ 4.7 compatibility).
Add the flag -fpermissive to ensure C++ 4.7 compatibility.

This is a temporary solution.