Added missing linker flags and header search paths.