Mpl fix rpath

First merge #46.

Fixes #47. A very simple patch, we just need to use libflags.