Fix some linking bugs

Signed-off-by: Matt White <matthew.white@fclonline.com>