set global requrie() when starts from node-main

Fix rogerwang/node-webkit#371