Fixed artifacts of the port that made the code compile with warnings under linux.