Compatibility with BKC (removed use of NativeUtil and NMS calls

Signed-off-by: Irmo van den Berge <bergerkiller@gmail.com>