Changed cmake configuration, allow custom compiler paths.
Fixed compilation issue on i386 architecture.