Fixed script to compile against correct include, library paths and link order: Patch: http://cr.openjdk.java.net/~dsimms/6945460/ <http://cr.openjdk.java.net/%7Edsimms/6945460/> Bug: https://bugs.openjdk.java.net/browse/JDK-6945460 /David Simms