Fix compilation issues in Linux and clean directory.