Fixed compiler error and warnings