Fixed problem related to case-sensitivity of locally defined variables
Fixed problem related to case-sensitivity of locally defined variables

Fixed problem related to compilation with latest version of clang (version 5.0.0 trunk 303036)
Minor code cleanup

MRPT/mrpt,MRPT/mrpt,MRPT/mrpt,MRPT/mrpt,MRPT/mrpt