Fix static linking (android builds working again)