removed deprecation warnings and required gcc class