Fixed linking errors when compiled in actual applications