Fixing Compiling errors in all Solutions

Fixed missing files in some solutions
Added some preprocessor directive when needed