enable openal shared compile

This entire section is almost the same as `$(PKG)_BUILD`. Can you merge these two sections with

```
-DLIBTYPE=$(if BUILD_SHARED,SHARED,STATIC) \
```