Last OSX improvements

The bundle build should works with all cases (with or without XCode) , be fully configurable and be not altered by an eventual iOS development.

My future OSX contributions will only be for debug now.