Fix bug where component declaration could hide entity
Add script to build Altera simulation libraries