fixed plattform sepcific behaviour in tests; own maven profile to build the dmg file on osx