Added more definitions into stubs for Ubuntu and Windows7 lmtools