Make build more portable 

Make build more portable, post-link with libRT on linux systems.