Removed the Maven Profile 'mac-profile' and added the missing tools.jar dependency to the sample module

For the details about the 2 commits see the detailed comments inside each of them.