fixed linker flags for newer gcc versions
updated install docs