change PLATFORM to RUBY_PLATFORM