add breaks to case statement, rookie mistake
build for windows XP
need to define export for mac os x too...