enforce pld paths
add applnkdir as macro
avoid java dependency