fixing nsm HD5 calls to work under ubuntu