[misc] Fix linking error and spacing issue