Fixed support *.m files, #endif issue