solved problem compiling with debug in macosx