Fixed linking flags for Linux.