Fixed compilation issues

Added references stored on svn