Fix static build, setting the BZRTP_STATIC definition correctly and building with position independent code.