FIX: issue #970 (Library compilation broken)

FIX: issue #988 (Compiling DLL with RPi Target crashes the compiler)