Fixed library dependency issues and resubmitted to ports@.