Build: Fixed compilation errors on Lucid & RHEL 6