Changed order of linker command to fix ubuntu ldl linking...