Fix undefined reference, normalise whitespace