modified production.rb on static compilation