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