Last OSX improvements

(Sorry, I didn't thought that you would accept the precedent pull request so fast ^^ )

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.