Fix tests failing to compile

Add link to boost system as the linker suggests. Must be due to newer
versions of the boost libraries.
Link against local lib