An attempt at pulling out the libreplace for each platform. Linux is targeted, Windows/Mac is shotgun, to be refined.