Allow static linking on android