Added option to specify port for native border router
Made buffer sizes configurable
Added adaptive timeout in main loop for native platform to reduce the load