Fix undefined references