Added a check to the configure script that adds "-Wl,-no_pie" to the linker flags on OS X 10.7 or later.