Fixed minor issues for building on Linux.