Amended support for Apache Portable Runtime.

Hi 

I've made the amendments. Thanks

   fintan