Fix compilation on Linux

It fails compilation on Linux because of case sensitivity and some other issues:
    
Needed to change some paths from ../ to ../../, change case of a few files, add waveram.c and add _VERSION2 define.
    
It compiles successfully on Linux now, and the firmware works on my DSO :-)