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