Hi Pedro,
Under which platform are you running Windows or Linux/Unix?
The 173 error indicates that it cannot find the entry point for MQCLOSE which should be located in the MQ Series libraries.
Are you linking the MQ Series libraries to your application?
There is an article here that references creating a new RTS under Server Express that includes the MQ libraries,