support platform dependent gems

fixes DruRly/gemrat#11