enable openal shared compile
remove duplicate code
Merge pull request #455 from abma/master

enable openal shared compile