[mkbundle] More Windows linking fixes, added "--custom-main" option