- fixing compile-time errors and warnings