detect platform and assign dependencies.  addresses #106