- fixed up main to be compatible with replacement for QNX/BB10